import request from '@/utils/request'

/**
 * 获取角色列表
 * @param {page,limit} data 
 * @returns 
 */
export function getAccountList(data) {
    return request({
        url: '/admin/admin/adminList',
        method: 'post',
        data
    })
}

export function addAccount(data) {
    return request({
        url: '/admin/admin/addAdmin',
        method: 'post',
        data
    })
}

export function editAccount(data) {
    return request({
        url: '/admin/admin/editAdmin',
        method: 'post',
        data
    })
}

export function deleteAccount(data) {
    return request({
        url: '/admin/admin/delAdmin',
        method: 'post',
        data
    })
}

export function resetPassword(data) {
    return request({
        url: '/admin/admin/resetPsd',
        method: 'post',
        data
    })
}